﻿<%@ Page language="c#" Codebehind="ManageStaff.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Staff.ManageStaff" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>ManageStaff</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<style type="text/css">
table {
	width:100%;
	border:none;
}
table th {
	background:#ccccff;
}
table th, table td {
	padding:3px;
}
table td span a, table td span a:visited {
	color:#fff;
}
.active1 {
	background:#1a499d;
}
.active2 {
	background:#337fb2;
	color:#fff;
	font-weight:bold;
}
.tabnavhead {
	text-align:right;
	position:relative;
}
.tnc {
	float:left;
	width:90px;
	height:30px;
	margin:0 0 0 5px;
	position:relative;
	bottom:0px;
}
.tnc a {
	width:90px;
	height:26px;
	display:block;
	padding:4px 0 0;
	text-align:center;
	line-height:26px;
	color:#fff;
}
.tnc a:visited {
	color:#fff;
}
.tnc a:hover {
	color:#ff0;
}
</style>
<script language="javascript">
			
		var ball1 = new Image();
		var ball2 = new Image();
		ball1.src = 'images/ball1.gif';
		ball2.src = 'images/ball2.gif';

		var active = new Image();
		var nonactive = new Image();
		active.src = '../../images/maillistbutton2.gif';
		nonactive.src = '../../images/maillistbutton1.gif';

		function onMouseOver(img)
		{
			document.images[img].src = ball2.src;
		}

		function onMouseOut(img)
		{
			document.images[img].src = ball1.src;
		}

		function onOverBar(bar)
		{
			if (bar != null) {
				bar.style.backgroundImage = "url("+active.src+")";
				
			}
		}

		function onOutBar(bar)
		{
			if (bar != null) {
				bar.style.backgroundImage = "url("+nonactive.src+")";
			}
		}
		
		function selectAll(){
			var len=document.MailList.elements.length;
			var i;
		    for (i=0;i<len;i++){
			if (document.MailList.elements[i].type=="checkbox"){
		        document.MailList.elements[i].checked=true;								
						 }
					}
				}

		function unSelectAll(){
	          var len=document.MailList.elements.length;
	          var i;
	          for (i=0;i<len;i++){
	               if (document.MailList.elements[i].type=="checkbox"){
	                  document.MailList.elements[i].checked=false; 
	               }   
	        	 } 
		    }		

		</script>
        </head>
<body>
<div class="m">
  <p class="path"><a href="/SubModule/UnitiveDocument/">我的桌面</a> >> 人员管理</p>
  <div class="con">
    <form id="ManageStaff" method="post" runat="server">
      <div class="tabnav">
        <p class="tabnavhead"> <span class="active<%Response.Write(GetSelectImage("1","2",DisplayType,0));%> tnc">
          <asp:linkbutton id="lbOnline" runat="server" >在职员工</asp:linkbutton>
          </span> <span class="active<%Response.Write(GetSelectImage("1","2",DisplayType,1));%> tnc">
          <asp:linkbutton id="lbOffLine" runat="server" >离职员工</asp:linkbutton>
          </span>
          <asp:CheckBox id="cbRemind" runat="server" Text="提醒公司全体员工" Width="240px" ></asp:CheckBox>
          <asp:button id="cmdNewStaff" runat="server" Text="新员工" CssClass="redbuttoncss"></asp:button>
          <asp:button id="cmdDimission" runat="server" Text="离职" CssClass="redbuttoncss"></asp:button>
          <asp:button id="cmdRehab" runat="server" Text="复职" CssClass="redbuttoncss"></asp:button>
          <asp:button id="cmdChangePosition" runat="server" Text="调职" CssClass="redbuttoncss"></asp:button>
          <asp:Button id="btn_Search" runat="server" CssClass="redbuttoncss" Text="查询"></asp:Button>
        </p>
      </div>
      <div>
        <asp:datagrid id="dbStaffList" runat="server" OnPageIndexChanged="DataGrid_PageChanged" BorderColor="#337fb2" CellPadding="3" PageSize="15" AllowPaging="True" AutoGenerateColumns="False" DataKeyField="Staff_ID">
          <SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
          <AlternatingItemStyle  BackColor="#E8F4FF"></AlternatingItemStyle>
          <ItemStyle ></ItemStyle>
          <HeaderStyle  Font-Bold="True" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
          <FooterStyle  HorizontalAlign="Right" BackColor="#E8F4FF"></FooterStyle>
          <Columns>
          <asp:TemplateColumn HeaderText="ID">
            <HeaderStyle Width="20px"></HeaderStyle>
            <ItemTemplate>
              <asp:CheckBox id="chkStaff_ID" runat="server"></asp:CheckBox>
            </ItemTemplate>
          </asp:TemplateColumn>
          <asp:HyperLinkColumn Text="真实姓名" DataNavigateUrlField="staff_id" DataNavigateUrlFormatString="../position/NewStaff.aspx?StaffID={0}&amp;ReturnPage=1"
										DataTextField="RealName" HeaderText="真实姓名">
            <HeaderStyle Width="100px"></HeaderStyle>
          </asp:HyperLinkColumn>
          <asp:HyperLinkColumn Text="修改账号" DataNavigateUrlField="staff_id" DataNavigateUrlFormatString="../position/EditStaffName.aspx?StaffID={0}"
										DataTextField="staff_name" HeaderText="修改账号">
            <HeaderStyle Width="100px"></HeaderStyle>
          </asp:HyperLinkColumn>
          <asp:BoundColumn DataField="Mobile" HeaderText="手机" >
            <HeaderStyle Width="60px" ></HeaderStyle>
          </asp:BoundColumn>
          <asp:BoundColumn DataField="Age" HeaderText="年龄">
            <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center"></ItemStyle>
          </asp:BoundColumn>
          <asp:BoundColumn DataField="SexName" HeaderText="性别">
            <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center"></ItemStyle>
          </asp:BoundColumn>
          <asp:BoundColumn DataField="Email" HeaderText="EMAIL">
            <HeaderStyle Width="100px"></HeaderStyle>
          </asp:BoundColumn>
          <asp:BoundColumn DataField="position_Name" HeaderText="所在部门">
            <HeaderStyle Width="150px"></HeaderStyle>
          </asp:BoundColumn>
          <asp:BoundColumn DataField="RQ" HeaderText="注册日期">
            <HeaderStyle HorizontalAlign="Right" Width="80px"></HeaderStyle>
            <ItemStyle HorizontalAlign="Right"></ItemStyle>
          </asp:BoundColumn>
          </Columns>
          <PagerStyle HorizontalAlign="Center" Mode="NumericPages"></PagerStyle>
        </asp:datagrid>
      </div>
    </form>
  </div>
</div>
</body>
</html>
